make
make clean
g++ tools/answer.cpp -o answer
g++ tools/time.cpp -o timetest
g++ tools/maker.cpp -o maker
./maker
./answer <testin/0.in> testans/0.ans
./answer <testin/1.in> testans/1.ans
./answer <testin/2.in> testans/2.ans
./answer <testin/3.in> testans/3.ans
./answer <testin/4.in> testans/4.ans
./answer <testin/5.in> testans/5.ans
echo -e "Test begin."
echo -e "Test 0.in: "
./test < testin/0.in > testout/0.out
if cmp -s testout/0.out testans/0.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

echo -e "Test begin."
echo -e "Test 1.in: "
./test <testin/1.in> testout/1.out
if cmp -s testout/1.out testans/1.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

echo -e "Test begin."
echo -e "Test 2.in: "
./test <testin/2.in> testout/2.out
if cmp -s testout/2.out testans/2.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

echo -e "Test begin."
echo -e "Test 3.in: "
./test <testin/3.in> testout/3.out
if cmp -s testout/3.out testans/3.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

echo -e "Test begin."
echo -e "Test 4.in: "
./test <testin/4.in> testout/4.out
if cmp -s testout/4.out testans/4.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

echo -e "Test begin."
echo -e "Test 5.in: "
./test <testin/5.in> testout/5.out
if cmp -s testout/5.out testans/5.ans
then echo -e "Accepted."
else echo -e "Wrong Answer!"
fi

./timetest <testin/0.in >using_time/time0.txt
./timetest <testin/1.in >using_time/time1.txt
./timetest <testin/2.in >using_time/time2.txt
./timetest <testin/3.in >using_time/time3.txt
./timetest <testin/4.in >using_time/time4.txt
./timetest <testin/5.in >using_time/time5.txt
rm answer
rm test
rm maker
rm timetest
